#include "include.h"
#include "Init.h"

void Init(void)
{
  pit_init_ms(PIT0,1);
  exti_init(PORTA,19,rising_down);
  AD_Init();
  turn_PWM_init();
  speed_PWM_init();
  reed_init();
  OLED_Init();
  Key_IO_Init();
  set_irq_priority(68,1);
  set_irq_priority(87,0);
  MyFlash_Read();
  sd_init();
 // gpio_init(PORTA,13,GPO,0);
}